<template>
	<view class="scrool-page">
		<view class="list-cont">
			<scroll-view  class="scrool-more" style="height: 100%" scroll-y="true" scroll-with-animation="true">
				<view v-for="(item,index) in productList" :key="item.id">
					<uni-card v-if='!item.flag' @click="detail(item.storageLocation)">
						<text class="uni-body">货位：{{ item.storageLocation }}</text><br>
					</uni-card>
					
					<uni-card v-else style='background-color: darkgrey;' @click="detail(item.storageLocation)">
						<text class="uni-body">货位：{{ item.storageLocation }}</text><br>
					</uni-card>
				</view>
			</scroll-view>
		</view>
		
		<view class="footer">
			<button type="default" size='mini' @click="submit">完成</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				productList:[
					{id:1,storageLocation:'K222',flag:false},
					{id:2,storageLocation:'K221',flag:false},
				],
			}
		},

		created() {
			
		},
		
		methods: {
			detail(storageLocation){
				uni.navigateTo({
					url: '/pages/special/wms_check_order_detaile?storageLocation='+storageLocation,
				})
			},
			
			submit(){
				
			},
		}
	}
</script>

<style lang="scss">
	.main {
		background-color: #fff;
		height: 300upx;
		align-items: center;
		margin-top: 10upx;
	}
	.text-content {
		font-size: 48rpx;
		text-align: center;
	}
	
	.city {
		/* #ifndef APP-PLUS-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		// width: 160rpx;
		margin-left: 4px;
		font-size: 26rpx;
	}
	
	.input-view {
		display: flex;
		flex-direction: row;
		flex: 1;
		//background-color: #f8f8f8;
		height: 30px;
		padding: 0 80px;
		flex-wrap: nowrap;
		margin: 7px 0;
		line-height:30px;
		font-size: 26rpx;
	}
	page {
		width: 100%;
		height: 100%;
	}
	
	
	.scrool-page {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
	}
	
	.header-cont {
		width: 100%;
		height: 110rpx;
		line-height: 100rpx;
		text-align: center;
		// background: red;
	}
	
	.list-cont {
		flex: 1;
		position: relative;
	
		.scrool-more {
			position: absolute;
			left: 0;
			right: 0;
			top: 0;
			bottom: 0;
		}
	
		.list {
			height: 80rpx;
			line-height: 80rpx;
			text-align: center;
			background: #e0e0e0;
	
		}
	}
	
	
	.footer {
		color: #fff;
		line-height: 100rpx;
		flex: 0 0 100rpx;
		/* 不放大不缩小固定100rpx */
	}
</style>